package demo02.aop;

import demo02.fn.Contestant;
import demo02.fn.ContestantImpl;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.DeclareParents;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ContestantIntroducer {  
    //value:被引入指定接口的Bean类型，defaultImpl：提供了所引入接口的实现  
        //@DeclareParents:指定了将被引入的接口  
        @DeclareParents(value="demo02.Juggler+",defaultImpl=ContestantImpl.class)
        public static Contestant contestant;
  
}  